package poiManagement;

import java.util.List;

//import model.POI;
import de.uni_karlsruhe.cm_tm.www.schema.poi.POI;

public class XMLPOIManager {
    private SAXReader reader;

    private DOMWriter writer;

    public XMLPOIManager() {
        //instantiate the helper classes
        reader = new SAXReader();
        writer = new DOMWriter();
    }

    public List<POI> getAllPOIs(String url) {
        return reader.readAllPOIs(url);
    }

    public int writeToDisk(List<POI> poiList, String path) {
        return writer.write(poiList, path);
    }
}